Skip to content

Upgrade github.com/modelcontextprotocol/go-sdk to fix DNS rebinding vulnerability#172

Merged
nathanjcochran merged 1 commit into
mainfrom
nathan/upgrade-mcp-lib
Jun 25, 2026
Merged

Upgrade github.com/modelcontextprotocol/go-sdk to fix DNS rebinding vulnerability#172
nathanjcochran merged 1 commit into
mainfrom
nathan/upgrade-mcp-lib

Conversation

@nathanjcochran

@nathanjcochran nathanjcochran commented Jun 25, 2026

Copy link
Copy Markdown
Member

Upgrades github.com/modelcontextprotocol/go-sdk from v1.2.0 to v1.6.1.

v1.2.0 did not enable DNS rebinding protection by default for HTTP-based MCP servers, which let a malicious website reach the local Tiger MCP HTTP server (tiger mcp start http) and invoke Tiger Cloud tools using the server-held credentials. The SDK enabled localhost DNS rebinding protection by default as of v1.4.0, so this is fixed by the version bump alone — no source changes are needed. Requests arriving on a loopback address with a non-localhost Host header (the shape of a rebound browser request) are now rejected with 403, while legitimate localhost clients are unaffected.

See the go-sdk v1.4.0 release notes (under "Introduced DNS rebinding protection") for details on the upstream fix: https://github.com/modelcontextprotocol/go-sdk/releases/tag/v1.4.0

@nathanjcochran nathanjcochran self-assigned this Jun 25, 2026
@nathanjcochran nathanjcochran changed the title Upgrade github.com/modelcontextprotocol/go-sdk to fix DNS rebinding vulnerability Upgrade github.com/modelcontextprotocol/go-sdk to fix DNS rebinding vulnerability Jun 25, 2026
@nathanjcochran nathanjcochran merged commit a03c89a into main Jun 25, 2026
2 checks passed
@nathanjcochran nathanjcochran deleted the nathan/upgrade-mcp-lib branch June 25, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants